﻿@model ProductReviewOverviewModel
@using Nop.Web.Models.Catalog;
@{
    int ratingPercent = 0;
    if (Model.TotalReviews != 0)
    {
        ratingPercent = ((Model.RatingSum * 100) / Model.TotalReviews) / 5;
    }
}
@if (Model.AllowCustomerReviews)
{
    if (Model.TotalReviews > 1)
    {
        <span>(@Model.TotalReviews Reviews Total)</span>
    }
    else
    {
        <span>(@Model.TotalReviews Review)</span>
    }
}